package com.citicup.backend.service.FundService.FundComparator;

import com.citicup.backend.service.FundService.FundSortInfo;

import java.util.Comparator;

public class XPRateComp implements Comparator<FundSortInfo> {

    @Override
    public int compare(FundSortInfo o1, FundSortInfo o2) {
        //越大越好
        return -Double.compare(o1.getFundInfo().getXpRate(), o2.getFundInfo().getXpRate());
    }
}